package com.zsc.wxm.ysh.anjo.house.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.wxm.ysh.anjo.house.model.RentHouse;
import com.zsc.wxm.ysh.anjo.result.PageResult;
import com.zsc.wxm.ysh.anjo.service.base.model.resources.dto.RentHouseDTO;
import com.zsc.wxm.ysh.anjo.service.base.model.resources.qo.RentHouseQuery;

/**
 * 描述：租房管理
 *
 * @author playmaker
 * @since 2021/2/24 23:07
 */
public interface RentHouseService extends IService<RentHouse> {

    /**
     * 新增记录
     *
     * @param params
     */
    void add(RentHouseDTO params);

    /**
     * 分页查询
     *
     * @return
     */
    PageResult listByPage(RentHouseQuery query);

    /**
     * 更改状态
     *
     * @param id
     * @param status
     */
    void updateStatus(Long id, Integer status);
}
